package com.day18me.Test;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

public class Test1 {
    public static void main(String[] args) {
        Set set = new HashSet();

        Book book1 = new Book("三国","罗贯中",78.25);
        Book book2 = new Book("水浒传","施耐庵",56.75);
        Book book3 = new Book("西游记","吴承恩",90.5);
        Book book4 = new Book("红楼梦","曹雪芹",178.25);
        Book book5 = new Book("红楼梦","曹雪芹",178.25);

        set.add(book1);
        set.add(book2);
        set.add(book3);
        set.add(book4);
        set.add(book5);
        System.out.println(set.size());

        for(Object o :set){
            System.out.println(o);
        }

    }
}
